package com.geek2.supermarket.service;

import com.geek2.supermarket.pojo.SmbmsRole;
import com.geek2.supermarket.pojo.SmbmsUser;

import java.util.List;

public interface UserService {
    List<SmbmsUser> queryAll(String userName,int roleId,int currentPageNo,int pageSize);
    SmbmsUser queryUser(String name,String id);

    List<SmbmsRole> queryRole();
    boolean updateUserPwd(SmbmsUser smbmsUser);
    boolean addUser(SmbmsUser smbmsUser);
    boolean delUserById(String id);
    //查询记录数
    int getUserCount(String username, int userRole);
    boolean updateUser(SmbmsUser smbmsUser);
}
